package gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.beans.PropertyVetoException;

public class menuBarActionListener {

	public static void ActionListener() {
		guiWSU.jMenuBar1.jMenuItem0_1.addActionListener(new ActionListener() {
	        public void actionPerformed(ActionEvent evt) {
	            if(!guiWSU.jInternalFrame1.isVisible()){
	            	guiWSU.jInternalFrame1 = new gui0_1().frame();
	            	guiWSU.jDesktopPane1.add(guiWSU.jInternalFrame1);
	            }else{
	            	try {
	            		guiWSU.jInternalFrame1.setIcon(false);
					} catch (PropertyVetoException e) {
						e.printStackTrace();
					}
	            }
	        }
	    });
    	
		guiWSU.jMenuBar1.jMenuItem0_2.addActionListener(new ActionListener() {
	        public void actionPerformed(ActionEvent evt) {
	            if(!guiWSU.jInternalFrame2.isVisible()){
	            	guiWSU.jInternalFrame2 = new gui0_2().frame();
	            	guiWSU.jDesktopPane1.add(guiWSU.jInternalFrame2);
	            }else{
	            	try {
	            		guiWSU.jInternalFrame2.setIcon(false);
					} catch (PropertyVetoException e) {
						e.printStackTrace();
					}
	            }
	        }
	    });
    	
		guiWSU.jMenuBar1.jMenuItem0_3.addActionListener(new ActionListener() {
	        public void actionPerformed(ActionEvent evt) {
	            System.exit(0);
	        }
	    });

	}

}
